package com.esgov.chatbot.dify;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;
import java.util.Map;

/**
 * Dify API响应实体类
 */
public class DifyResponse {

    private String id;
    private String answer;
    
    @JsonProperty("conversation_id")
    private String conversationId;
    
    private List<Map<String, Object>> retrieverResources;
    
    @JsonProperty("created_at")
    private Long createdAt;

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getConversationId() {
        return conversationId;
    }

    public void setConversationId(String conversationId) {
        this.conversationId = conversationId;
    }

    public List<Map<String, Object>> getRetrieverResources() {
        return retrieverResources;
    }

    public void setRetrieverResources(List<Map<String, Object>> retrieverResources) {
        this.retrieverResources = retrieverResources;
    }

    public Long getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Long createdAt) {
        this.createdAt = createdAt;
    }
}